#pragma once
#include "afxwin.h"
#include "Utils.h"

// CLoginDlg dialog

class CLoginDlg : public CDialogEx
{
	DECLARE_DYNAMIC(CLoginDlg)

public:
	CLoginDlg(CWnd* pParent = NULL);   // standard constructor
	virtual ~CLoginDlg();

// Dialog Data
	enum { IDD = IDD_Login };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
    afx_msg void OnLogin();
    afx_msg void OnQuit();
    CEdit m_usrName;
    CEdit m_psw;
    CStatic m_tip;

    int m_iUsrType;
    afx_msg void OnPaint();
    CImage m_img;
    afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
    afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
    afx_msg BOOL OnEraseBkgnd(CDC* pDC);
    CButtonST m_login;
    virtual BOOL OnInitDialog();
    CButtonST m_logout;
};
